/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.dao.SnDao;
import com.hboxs.asl.entity.Sn;
import com.hboxs.asl.service.SnService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Service - 序列号
 */
@Service("snServiceImpl")
public class SnServiceImpl implements SnService {

    @Resource(name = "snDaoImpl")
    private SnDao snDao;

    @Transactional
    public String generate(Sn.Type type) {
        return snDao.generate(type);
    }

}